<?php
//menu_list:
$menu_list = array(
    'content' => array(
        'title' => '内容管理', 
        'submenu' => array(
            'news' => array(
                'title' => '新闻管理', 
                'item' => array(
                    'news/create' => array(
                        'menupanel' => 'content|news|create', 
                        'title' => '添加新闻'
                    ), 
                    'news/index' => array(
                        'menupanel' => 'content|news|index', 
                        'title' => '新闻列表'
                    ),                		
                	'newsComments/index' => array(
                		'menupanel' => 'content|newsComments|index',
                		'title' => '新闻评论'
                	),
                )
            ), 
            'apps' => array(
                'title' => 'APP管理', 
                'item' => array(
                	'appCategories/index' => array(
                		'menupanel' => 'content|appCategories|index',
                		'title' => 'APP类别列表'
                	),
                    'apps/index' => array(
                        'menupanel' => 'content|apps|index', 
                        'title' => 'APP列表'
                    ),
                    'appsComments/index' => array(
                    		'menupanel' => 'content|appsComments|index',
                    		'title' => 'APP评论列表'
                    ),
                )
            ), 
            'shops' => array(
            	'title' => '精品馆管理',
            	'item' => array(
	            	'shops/index' => array(
	            			'menupanel' => 'content|shop|index' ,
	            			'title' => '精品馆列表',
	            	) ,
            		'shopSubcategories/index' => array(
            		    'menupanel'	=> 'content|shopSubcategories|index' ,
            		    'title' => '精品馆分类列表',
            		) ,
            		'shopApps/index' => array(
            				'menupanel' => 'content|shopApps|index' ,
            				'title' => '精品馆App列表',
            		),
            		'shopsComments/index' => array(
            			'menupanel' => 'content|shopsComments|index' ,
            			'title' => '精品馆评论列表' ,
            		) ,
            	)
            ) ,
            
            'manual' => array(
                'title' => '推荐管理', 
                'item' => array(
                    'modules/create' => array(
                        'menupanel' => 'content|modules|create', 
                        'title' => '添加推荐模块'
                    ),
                    'modules/index' => array(
                        'menupanel' => 'content|modules|index', 
                        'title' => '总模块管理'
                    ),
                    'modules/indexnews' => array(
                        'menupanel' => 'content|modules|indexnews', 
                        'title' => '推荐新闻管理'
                    ), 
                    'modules/indexapp' => array(
                        'menupanel' => 'content|modules|indexapp', 
                        'title' => '推荐APP管理'
                    ), 
                    'modules/indexranking' => array(
                        'menupanel' => 'content|modules|indexranking', 
                        'title' => '推荐排行榜管理'
                    ), 
                    'modules/indexforum' => array(
                        'menupanel' => 'content|modules|indexforum', 
                        'title' => '论坛热门帖管理'
                    ), 
                )
            )
        )
    ), 
    'ads' => array(
        'title' => '广告管理', 
        'submenu' => array(
            'ads' => array(
                'title' => '广告管理', 
                'item' => array(
                    'ads/create' => array(
                        'menupanel' => 'ads|ads|create', 
                        'title' => '添加广告'
                    ), 
                    'ads/index' => array(
                        'menupanel' => 'ads|ads|index', 
                        'title' => '广告列表'
                    ),
                    'ads/adimage' => array(
                    		'menupanel' => 'ads|ads|adimage',
                    		'title' => '广告图管理'
                    ),
                    'ads/adsite' => array(
                    		'menupanel' => 'ads|ads|adsite',
                    		'title' => '广告位设置'
                    ),
                )
            )
        )
    ), 
    'page' => array(
        'title' => '页面管理', 
        'submenu' => array(
            'page' => array(
                'title' => '页面管理', 
                'item' => array(
                    'page/index' => array(
                        'menupanel' => 'page|page|index', 
                        'title' => '页面管理'
                    ), 
                    'page/generate' => array(
                        'menupanel' => 'page|page|generate', 
                        'title' => '更新静态化'
                    )
                )
            )
        )
    ), 
    'user' => array(
        'title' => '用户管理', 
        'submenu' => array(
            'users' => array(
                'title' => '用户管理', 
                'item' => array(
                	'users/create' => array(
                		'menupanel' => 'user|user|create',
                		'title' => '添加用户'
                ),
                    'users/index' => array(
                        'menupanel' => 'user|user|index', 
                        'title' => '用户管理'
                    ),
                    'users/search' => array(
                    		'menupanel' => 'user|user|search',
                    		'title' => '查询用户'
                    ),
                   
                )
                
            ),
            'other' => array(
            		'title' => '其它功能',
            		'item' => array(
            				'users/lock' => array(
            						'menupanel' => 'user|user|lock',
            						'title' => '冻结账号'
            				),
            				'users/reset_password' => array(
            						'menupanel' => 'user|user|reset',
            						'title' => '重置密码'
            				)
            		)
            
            )
        )
    ), 
    'option' => array(
        'title' => '系统管理', 
        'submenu' => array(
            'admin' => array(
                'title' => '管理权限', 
                'item' => array(
                    'admin/create' => array(
                        'menupanel' => 'option|admin|create', 
                        'title' => '添加管理员'
                    ), 
                    'admin/index' => array(
                        'menupanel' => 'option|admin|index', 
                        'title' => '管理员列表'
                    ), 
                    'admingroup/index' => array(
                        'menupanel' => 'option|admingroup|index', 
                        'title' => '管理组'
                    ), 
                    'systemfiles/index' => array(
                        'menupanel' => 'option|systemfiles|index', 
                        'title' => '权限管理'
                    )
                )
            )
        )
    )
);

$tbl_news = array(
		'newsType' => array('1'=>'news' , '2'=>'event'),
		'cnNewsType' => array('news'=>'新闻' , 'event' => '事件'),
		'newsStatus' => array('1'=>'ready','2'=> 'locked','3'=> 'open','4'=> 'removed'),
		'cnNewsStatus' => array('ready'=>'准备', 'locked'=>'锁定', 'open'=>'打开', 'removed'=>'删除'),
		'newsHot' => array('0' =>"非热门" , '1' =>"热门") ,
) ;
$tbl_apps = array(
		'appsType' => array('app'=> 'app' , 'game' =>'game') ,
		'appsPlatType' => array('iphone' => 'iphone' , 'ipad' => 'ipad' , 'android' => 'android') ,
);
$tbl_modules = array(
		'moduleStatus' => array('1'=>'ready','2' =>'removed','3' => 'open', '4' => 'hidden'),
		'cnModuleStatus' => array('ready' =>'准备', 'removed' => '删除', 'open' => '打开', 'hidden' =>'隐藏' ) ,
);
$tbl_ads = array(
) ;
$tbl_ad_group = array(
);

$common_status = array('hidden'=>'隐藏', 'open'=>'打开', 'removed'=>'删除');
$common_plats = array('iphone' => 'iphone' , 'ipad' => 'ipad' , 'android' => 'android' , 'ios'=> 'ios') ;

$target = array('_blank' => '在新页面打开', '_self' => '在当前页打开');
$upload_path = array('upload_path' => '/data/apps/');

return array(
    'actionInfo' => array(
        'saveSuccess' => '信息添加成功！请继续添加。', 
        'saveFail' => '信息添加失败！请重新添加。', 
        'updateSuccess' => '信息更新成功！', 
        'updateFail' => '信息更新失败！请重新保存。', 
        'deleteSuccess' => '信息删除成功！', 
        'deleteFail' => '信息删除失败！'
    ), 
    'role' => array('1' => '超级管理员', '2' => '网站管理员', '3' => '网站会员'
    ), 
    'roleact' => array(
        'article_create' => array('1' => true, '2' => true, '3' => true
        )
    ), 
    'feedback' => array('1' => '网站留言'
    ), 
    'girdpagesize' => 15, 
    'menuoption' => array(
        'content' => array(
            'article' => true, 
            'product' => true, 
            'link' => true, 
            'picture' => true, 
            'feedback' => true, 
            'job' => true,
        	'newsComments'=>true ,
        )
    ), 
    'seo' => false, 
    'urltarget' => array('_blank' => '在新页面打开', '_self' => '在当前页打开'
    ), 
    'recommend' => array(
        'article_display' => false, 
        'product_display' => false, 
        'article' => array('0' => '请选择', '1' => '推荐'
        ), 
        'product' => array('0' => '请选择', '1' => '推荐'
        )
    ), 
    'recommend_level' => array(
        'article_display' => false, 
        'product_display' => false, 
        'article' => array(
            '0' => '请选择', 
            '1' => '1', 
            '2' => '2', 
            '3' => '3', 
            '4' => '4', 
            '5' => '5', 
            '6' => '6', 
            '7' => '7', 
            '8' => '8', 
            '9' => '9'
        ), 
        'product' => array(
            '0' => '请选择', 
            '1' => '1', 
            '2' => '2', 
            '3' => '3', 
            '4' => '4', 
            '5' => '5', 
            '6' => '6', 
            '7' => '7', 
            '8' => '8', 
            '9' => '9'
        )
    ), 
    'resDir'	=>    'http://res.mobileportal.dev.zfl/',
    'menulist'	=>    $menu_list ,
	
	'tbl_news' => $tbl_news ,
	'tbl_apps' => $tbl_apps ,
	'tbl_modules' => $tbl_modules ,
	'target' => $target,
	'upload_path'=>$upload_path ,
		
	'common_status' => $common_status ,
	'common_plats' => $common_plats ,
);
